package com.six.goods.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.six.core.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.six.core.vo.GoodsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author wang
* @description 针对表【sto_goods】的数据库操作Mapper
* @createDate 2023-02-27 09:56:34
* @Entity com.six.core.entity.Goods
*/
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
    //商品列表
    List<Goods> selectAllGoods(GoodsVo goodsVo);

    //商品审核
    List<Goods> queryGood(GoodsVo goodsVo);

    //前端--所有商品展示
    List<Goods> selectGoodsByCatrgotyId(GoodsVo goodsVo);
    List<Goods> selectGoodsByCatrgoty(GoodsVo goodsVo);

    //前端--单个商品界面--下单
    Goods goodsbyid(Integer id);

    //前端--商家登录--商品管理
    List<Goods> selectAllGoodsByshopid(GoodsVo goodsVo);

    //根据商店id查询店铺商品
    List<Goods> selectByshopid(Integer shopid);
    Goods selectByshopid1(Integer shopid);
}




